package ve.usb.coord.colision;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import java.util.List;
import ve.usb.cohesion.runtime.Pair;


public class FColision extends org.apache.struts.action.ActionForm {
    
    
    public FColision() {
        super();
    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        idColision = 0l;
        oferta1 = 0l;
        listOferta = null;
        oferta2 = 0l;
        causa = "";
        gravedad = 0;

    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

/**
     * Holds value of property idColision.
     */
    private long idColision;

    /**
     * Getter for property idColision.
     * @return Value of property idColision.
     */
    public long getIdColision() {
        return this.idColision;
    }

    /**
     * Setter for property idColision.
     * @param idColision New value of property idColision.
     */
    public void setIdColision(long idColision) {
        this.idColision = idColision;
    }

/**
     * Holds value of property oferta1.
     */
    private long oferta1;

    /**
     * Getter for property oferta1.
     * @return Value of property oferta1.
     */
    public long getOferta1() {
        return this.oferta1;
    }

    /**
     * Setter for property oferta1.
     * @param oferta1 New value of property oferta1.
     */
    public void setOferta1(long oferta1) {
        this.oferta1 = oferta1;
    }

/**
     * Holds value of property listOferta.
     */
    private List<Pair> listOferta;

    /**
     * Getter for property listOferta.
     * @return Value of property listOferta.
     */
    public List<Pair> getListOferta() {
        return this.listOferta;
    }

    /**
     * Setter for property listOferta.
     * @param listOferta New value of property listOferta.
     */
    public void setListOferta(List<Pair> listOferta) {
        this.listOferta = listOferta;
    }

/**
     * Holds value of property oferta2.
     */
    private long oferta2;

    /**
     * Getter for property oferta2.
     * @return Value of property oferta2.
     */
    public long getOferta2() {
        return this.oferta2;
    }

    /**
     * Setter for property oferta2.
     * @param oferta2 New value of property oferta2.
     */
    public void setOferta2(long oferta2) {
        this.oferta2 = oferta2;
    }

/**
     * Holds value of property causa.
     */
    private String causa;

    /**
     * Getter for property causa.
     * @return Value of property causa.
     */
    public String getCausa() {
        return this.causa;
    }

    /**
     * Setter for property causa.
     * @param causa New value of property causa.
     */
    public void setCausa(String causa) {
        this.causa = causa;
    }

/**
     * Holds value of property gravedad.
     */
    private byte gravedad;

    /**
     * Getter for property gravedad.
     * @return Value of property gravedad.
     */
    public byte getGravedad() {
        return this.gravedad;
    }

    /**
     * Setter for property gravedad.
     * @param gravedad New value of property gravedad.
     */
    public void setGravedad(byte gravedad) {
        this.gravedad = gravedad;
    }




}